/**
 */
public class Priority {

  Long id;
  String name;
  String description;
  Short value;

  static def constraints = {
    id(blank: false, unique: true)
    name(size: 1..10, blank: false)
    value(blank: false)
  }

  public String encodeAsHTML() {
    return description
  }

  public String toString ( ) {
    return description
  }
}